package com.dq.Week1.day04.method;

public class recursiveDemo02 {

    public static long jc(int num)
    {
        if(num==1)
        {
            return 1;
        }
        long result = num*jc(num-1);
            return result;
    }
    public static void main(String[] args) {
        long jc = jc(5);
        System.out.println(jc);
    }
}
